//
//  HJUserManager.h
//  Sneakers
//
//  Created by 胡光健 on 2017/9/28.
//  Copyright © 2017年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>

@class HJUserModel;
@interface HJUserManager : NSObject
/// 同步个人信息
+ (void)syncUserModel;
+ (void)syncUserModelWithCompletion:(void (^)(HJUserModel *model))completion;

/// 获得当前登录用户的个人信息
+ (HJUserModel *)getUserModel;
/// 设置当前登录用户的个人信息
+ (void)setUserModelWithDict:(NSDictionary *)dict;
/// 是否是登录状态,如果不是，弹出登录控制器
+ (BOOL)isLogin;

/**
 修改更新用户信息
 @param params 参数
 @param success 成功返回
 */
+(void)updateUserModelWithParams:(NSDictionary *)params success:(void(^)(void))success;
@end

/*********************************************** 用户信息模型 ****************************************************************/

@class YFUserInfoTagModel;
@class YFUserAuthModel;
@class CityModel;

#pragma mark
#pragma mark - User Model

@interface HJUserModel : NSObject
@property(nonatomic,copy) NSString * address;
@property(nonatomic,copy) NSString * token;
@property(nonatomic,copy) NSString * age;
@property(nonatomic,assign) BOOL auth;
@property(nonatomic,copy) NSString * avatar;
@property(nonatomic,copy) NSString * emotion;
@property (nonatomic, copy) NSString *backgroundIcon;
@property(nonatomic,copy) NSString * intro;
@property(nonatomic,copy) NSString * level;
@property(nonatomic,copy) NSString * nickName;
@property(nonatomic,copy) NSString * rongCloudToken;
@property(nonatomic,copy) NSString * sex;
@property(nonatomic,copy) NSString * userId;
@property(nonatomic,copy) NSString * userName;
@property(nonatomic,copy) NSString * birthday;
@property(nonatomic,strong) YFUserAuthModel * authInfo;
@property(nonatomic,strong) CityModel * city;
@property(nonatomic,assign) BOOL vip;
@property(nonatomic,assign) BOOL dataAllComplete;
@property(nonatomic,assign) BOOL dataPartComplete;
/**
 职业
 */
@property (nonatomic, copy) NSString *vocationName;
/**
 用户标签数组
 */
@property (nonatomic, strong) NSArray <YFUserInfoTagModel *> *tagModels;



#pragma mark - 自定义 属性

/**
 性别 Image
 */
@property (nonatomic, strong) UIImage *sexImage;
/**
 用户标签数组
 */
@property (nonatomic, strong) NSArray <NSString *> *tagArray;

/**
 用户标签颜色数组
 */
@property (nonatomic, strong) NSArray <UIColor *> *tagColorArray;

@end

#pragma mark
#pragma mark - 用户标签 Model
/**
 用户标签模型
 */
@interface YFUserInfoTagModel : NSObject

/**
 标签颜色
 */
@property (nonatomic, copy) NSString *color;
/**
 标签 id
 */
@property (nonatomic, copy) NSString *tagId;
/**
 标签名字
 */
@property (nonatomic, copy) NSString *name;

@end

#pragma mark
#pragma mark - 用户城市信息 Model
@interface CityModel : NSObject;

@property(nonatomic,copy) NSString * cityAltitude;
@property(nonatomic,copy) NSString * cityEnglishName;
@property(nonatomic,copy) NSString * cityFullName;
@property(nonatomic,copy) NSString * cityLatitude;
@property(nonatomic,copy) NSString * cityLevel;
@property(nonatomic,copy) NSString * cityLongitude;
@property(nonatomic,copy) NSString * cityOid;
@property(nonatomic,copy) NSString * cityPid;
@property(nonatomic,copy) NSString * cityShortName;
@property(nonatomic,copy) NSString * cityName;

@end

#pragma mark
#pragma mark - 用户授权信息 Model
@interface YFUserAuthModel: NSObject
// 手机号
@property (nonatomic, copy) NSString *mobile;
// 姓名
@property (nonatomic, copy) NSString *name;
// 时间
@property (nonatomic, copy) NSString *time;
// 银行卡号
@property (nonatomic, copy) NSString *cardCode;

@end

/*********************************************** 用户信息模型 ****************************************************************/
